package bigdata.mappingproperties;

/**
 * 描述:
 *
 * @author 002465
 * @created 2017/7/10 15:48
 * @since v1.0.0
 */
public class CrmapiProperties  extends  BaseProperties{
    private volatile static CrmapiProperties crmapiProperties;

    private  static final String crmDomain = "crmDomain";
    private  static final String jsDecodeKey = "jsDecodeKey";
    private  static final String callLawsuitAll = "callLawsuitAll";
    private CrmapiProperties(){
        this.path = "/properties/crmapi.properties";
    }

    public String getCrmDomainValue(){
        return getValue(crmDomain);
    }

    public String getJsDecodeKeyValue(){
        return getValue(jsDecodeKey);
    }

    public String getCallLawsuitAllUrl(){
        return getCrmDomainValue()+getValue(callLawsuitAll);
    }

    public static CrmapiProperties create(){
        if(crmapiProperties == null){
            synchronized (CrmapiProperties.class){
                crmapiProperties = new CrmapiProperties();
            }
        }
        return  crmapiProperties;
    }
}
